import 'dart:convert';

/// code : 0
/// data : ""
/// msg : ""
/// serverTime : 0

LoginEncryptData loginEncryptDataFromJson(String str) =>
    LoginEncryptData.fromJson(json.decode(str));

String loginEncryptDataToJson(LoginEncryptData data) =>
    json.encode(data.toJson());

class LoginEncryptData {
  LoginEncryptData({
    int? code,
    String? data,
    String? msg,
    String? serverTime,
  }) {
    _code = code;
    _data = data;
    _msg = msg;
    _serverTime = serverTime;
  }

  LoginEncryptData.fromJson(dynamic json) {
    _code = json['code'];
    _data = json['data'];
    _msg = json['msg'];
    _serverTime = json['serverTime'];
  }

  int? _code;
  String? _data;
  String? _msg;
  String? _serverTime;

  LoginEncryptData copyWith({
    int? code,
    String? data,
    String? msg,
    String? serverTime,
  }) =>
      LoginEncryptData(
        code: code ?? _code,
        data: data ?? _data,
        msg: msg ?? _msg,
        serverTime: serverTime ?? _serverTime,
      );

  int? get code => _code;

  String? get data => _data;

  String? get msg => _msg;

  String? get serverTime => _serverTime;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['code'] = _code;
    map['data'] = _data;
    map['msg'] = _msg;
    map['serverTime'] = _serverTime;
    return map;
  }
}
